$OpenBSD: patch-src_CMakeLists_txt,v 1.1 2014/01/15 16:21:56 zhuk Exp $
Fix linking.
--- src/CMakeLists.txt.orig	Wed Jan 15 19:59:51 2014
+++ src/CMakeLists.txt	Wed Jan 15 20:03:30 2014
@@ -31,11 +31,6 @@ add_library(qtruby4shared SHARED ${qtrubyshared_LIB_SR
 add_library(qtruby4 MODULE ${qtruby_LIB_SRCS})
 
 target_link_libraries(  qtruby4shared 
-                            ${QT_QTCORE_LIBRARY} 
-                            ${QT_QTGUI_LIBRARY} 
-                            ${RUBY_LIBRARY} 
-                            ${QT_QTNETWORK_LIBRARY}
-                            ${SMOKE_BASE_LIBRARY}
                             ${SMOKE_QTCORE_LIBRARY} 
                             ${SMOKE_QTGUI_LIBRARY} 
                             ${SMOKE_QTXML_LIBRARY} 
@@ -43,14 +38,16 @@ target_link_libraries(  qtruby4shared 
                             ${SMOKE_QTSQL_LIBRARY} 
                             ${SMOKE_QTNETWORK_LIBRARY} 
                             ${SMOKE_QTDBUS_LIBRARY} 
-                            ${SMOKE_QTSVG_LIBRARY} )
+                            ${SMOKE_QTSVG_LIBRARY}
+                            ${SMOKE_BASE_LIBRARY}
+                            ${QT_QTNETWORK_LIBRARY}
+                            ${QT_QTGUI_LIBRARY} 
+                            ${QT_QTCORE_LIBRARY} 
+                            ${RUBY_LIBRARY}
+                            )
 
 target_link_libraries(  qtruby4 
-                            ${QT_QTCORE_LIBRARY} 
-                            ${QT_QTGUI_LIBRARY} 
-                            ${QT_QTDBUS_LIBRARY} 
-                            ${RUBY_LIBRARY} 
-                            ${QT_QTNETWORK_LIBRARY} 
+                            qtruby4shared
                             ${SMOKE_QTCORE_LIBRARY} 
                             ${SMOKE_QTGUI_LIBRARY} 
                             ${SMOKE_QTXML_LIBRARY} 
@@ -59,9 +56,14 @@ target_link_libraries(  qtruby4 
                             ${SMOKE_QTNETWORK_LIBRARY} 
                             ${SMOKE_QTDBUS_LIBRARY} 
                             ${SMOKE_QTSVG_LIBRARY}
-                            qtruby4shared )
+                            ${QT_QTNETWORK_LIBRARY} 
+                            ${QT_QTDBUS_LIBRARY} 
+                            ${QT_QTGUI_LIBRARY} 
+                            ${QT_QTCORE_LIBRARY} 
+                            ${RUBY_LIBRARY} 
+                            )
 
-# target_link_libraries(qtrubyinternal ${QT_QTCORE_LIBRARY} ${RUBY_LIBRARY} ${QT_QTNETWORK_LIBRARY})
+# target_link_libraries(qtrubyinternal ${QT_QTNETWORK_LIBRARY} ${QT_QTCORE_LIBRARY} ${RUBY_LIBRARY})
 
 set_target_properties(qtruby4 PROPERTIES PREFIX "")
 set_target_properties(qtruby4shared PROPERTIES VERSION 2.0.0 SOVERSION 2)
